#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QStandardItemModel>
#include <QDebug>
#include <QDir>
#include <QFileDialog>
#include <QScrollBar>
#include <QTimer>
#include <QMessageBox>
#include <QColorDialog>

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE
class TabWin1;
class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void Permission();
    Ui::MainWindow * getUi(){return ui;};
    void setEdgeMethod(int row);
private slots:
    void on_tabCloseRequested(int index);
    void on_actionPrewitt_triggered();
    void on_actionnull_triggered();
    void on_actionSobel_triggered();
    void on_actionCanny_triggered();
    void on_actionLaplacian_triggered();
    void on_menu1_action1_triggered(bool checked);
    void on_actionclose_triggered();
    void on_actionqingkong_triggered();
    void on_actionaddRow_triggered();
    void on_actionchognzhi_triggered();
private:
    Ui::MainWindow *ui;
    TabWin1 *tabWin1=nullptr;
};
#endif // MAINWINDOW_H
